<?php
/**
 * Created by PhpStorm.
 * User: Jerry
 * Date: 2016/12/17
 * Time: 11:40
 */

namespace YMApi\Model;


use Think\Model;

/**
 * Class SeminarPageModel
 * @package SDXApi\Model
 */
class SeminarPageModel extends Model
{
	/**
	 * @var string
	 */
	protected $tableName = 'seminar_template_pages';


	/**
	 * Created by Jerry
	 * @param $id
	 * @return mixed
	 */
	public function find_seminar_template_pages_by_template_id($id)
	{
		$where = array(
			'template_id'	=>	$id,
		);

		return $this->where($where)->order('sort desc')->select();
	}
}